package com.hm.add1;

public class DingZhen implements Listener{
    @Override
    public void listen(Animal animal) {
        switch (animal) {
            case SnowLeopard snowLeopard -> System.out.println("雪豹闭嘴");
            case Relic relic -> System.out.println("芝士舍利");
            case RoeDeer roeDeer -> System.out.println("芝士獐子");
            case null, default -> System.out.println("义眼丁真");
        }


    }
}
